import { HTTP } from '../utils/httpRequestUtil'
import URL from './api'
export default {
  sysProcessLoadByPaging (params, cb) {
    HTTP.post(URL.sysProcessLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysProcessSave (params, cb) {
    HTTP.post(URL.sysProcessSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysProcessUpdate (params, cb) {
    HTTP.post(URL.sysProcessUpdate, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysProcessGet (params, cb) {
    HTTP.post(URL.sysProcessGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysProcessDelete (params, cb) {
    HTTP.post(URL.sysProcessDelete, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysDictGroupLoadByPaging (params, cb) {
    HTTP.post(URL.sysDictGroupLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysDictGroupSave (params, cb) {
    HTTP.post(URL.sysDictGroupSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysDictGroupGet (params, cb) {
    HTTP.post(URL.sysDictGroupGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysDictLoadByPaging (params, cb) {
    HTTP.post(URL.sysDictLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysDictSave (params, cb) {
    HTTP.post(URL.sysDictSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMsgTemplateLoadByPaging (params, cb) {
    HTTP.post(URL.sysMsgTemplateLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMsgTemplateSave (params, cb) {
    HTTP.post(URL.sysMsgTemplateSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMsgTemplateUpdate (params, cb) {
    HTTP.post(URL.sysMsgTemplateUpdate, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMsgTemplateGet (params, cb) {
    HTTP.post(URL.sysMsgTemplateGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMsgTemplateDelete (params, cb) {
    HTTP.post(URL.sysMsgTemplateDelete, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMilestoneLoadByPaging (params, cb) {
    HTTP.post(URL.sysMilestoneLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMilestoneGet (params, cb) {
    HTTP.post(URL.sysMilestoneGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMilestoneSave (params, cb) {
    HTTP.post(URL.sysMilestoneSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysMilestoneDelete (params, cb) {
    HTTP.post(URL.sysMilestoneDelete, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysTipsLoadByPaging (params, cb) {
    HTTP.post(URL.sysTipsLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysTipsGet (params, cb) {
    HTTP.post(URL.sysTipsGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysTipsSave (params, cb) {
    HTTP.post(URL.sysTipsSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysTipsDelete (params, cb) {
    HTTP.post(URL.sysTipsDelete, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysParameterLoadByPaging (params, cb) {
    HTTP.post(URL.sysParameterLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysParameterGet (params, cb) {
    HTTP.post(URL.sysParameterGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysParameterSave (params, cb) {
    HTTP.post(URL.sysParameterSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysParameterDelete (params, cb) {
    HTTP.post(URL.sysParameterDelete, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysAppLoadByPaging (params, cb) {
    HTTP.post(URL.sysAppLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysAppGet (params, cb) {
    HTTP.post(URL.sysAppGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysAppSave (params, cb) {
    HTTP.post(URL.sysAppSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sysAppDelete (params, cb) {
    HTTP.post(URL.sysAppDelete, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  }
}
